/**
 * 饿汉式单例,线程安全
 *
 * @author Pymjl
 * @version 1.0
 * @date 2022/8/10 20:17
 **/
public class HungrySingleton {
    private static HungrySingleton instance = new HungrySingleton();

    private HungrySingleton() {
    }

    public static HungrySingleton getInstance() {
        return instance;
    }
}
